package com.yueyang.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * -
 *
 * @author：yueyang
 * @date：Created in 2020/10/29 16:16
 */
@Controller
public class HelloController {

    @RequestMapping("/index")
    public String sayHello(){
        return "index";
    }

    @RequestMapping("/demo")
    public String myDemo(){
        return "demo";
    }

    @RequestMapping("/echarts")
    public String myECharts(Model model){

        String skirt = "裙子";
        int nums = 30;

        model.addAttribute("skirt", skirt);
        model.addAttribute("nums", nums);

        return "echarts";
    }
}

